package org.udr.datamodel;

import java.util.Iterator;
import java.util.Map;


public class DataModel {

	private final String name;

	private final Map<String,Entity> entities;
	
	public DataModel(String dataModelName, Map<String,Entity> entities) {
		this.name = dataModelName;
		this.entities = entities;
	}

	public String getName() {
		return name;
	}

	public Iterator<Entity> getEntities(){
		return this.entities.values().iterator();
	}

	public Entity getEntity(String entityName) {
		return entities.get(entityName);
	}
	
}
